#!/usr/bin/env python

#ackermann_vector = zeros([7, 7], Integer)
#n 0 1 2 3 4 5 6
#m
# [ 1 2 3 4 5 6 7 ]
#  [ ]
#  [ ]
#  [ ]
#  [ ]
#  [ ]
#  [ ]
#  [ ]]

def Ackermann(m, n):
    return 0

def ack(M, N):
   return (N + 1) if M == 0 else (
      ack(M-1, 1) if N == 0 else ack(M-1, ack(M, N-1)))


sum = 1
if( __name__ == "__main__" ):
    for i in range(0, 7):
       #sum *= ack(i, i) % 14 ** 8
       sum *= ack(i, i)
print sum
